﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum AddChildConfigState
    {
        /// <summary>
        /// 管理员锁定
        /// </summary>
        Locked = 0,
        /// <summary>
        /// 正常
        /// </summary>
        Normal = 1
    }
    public static class AddChildConfigStateEx
    {
        public static string GetName(this AddChildConfigState state)
        {
            switch (state)
            { 
                case AddChildConfigState.Locked:
                    return "管理员锁定";
                case AddChildConfigState.Normal:
                    return "正常";
                default:
                    return state.ToString();
            }
        }
    }
}
